import request from '@/utils/request'

export function getTeacherList(current,size,Condition) {
  return request({
    url: `/service-edu/DongBing/edu-teacher/pageCondition/${current}/${size}`,
    method: 'get',
    params: Condition
  })
}

export function getTeacherById(id) {
  return request({
    url: `/service-edu/DongBing/edu-teacher/findById/${id}`,
    method: 'get'
  })
}

export function getFindAll() {
  return request({
    url: `/service-edu/DongBing/edu-teacher/findAll`,
    method: 'get'
  })
}


export function deleteTeacherById(id) {
  return request({
    url: `/service-edu/DongBing/edu-teacher/delete/${id}`,
    method: 'delete',
  })
}

export function saveTeacher(person) {
  return request({
    url: `/service-edu/DongBing/edu-teacher/insert`,
    method: 'post',
    data: person
  })
}

export function updateTeacher(person) {
  return request({
    url: `/service-edu/DongBing/edu-teacher/update`,
    method: 'post',
    data: person
  })
}
